package com.wang.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wang.common.model.dto.ResponseResult;
import com.wang.wemedia.api.model.dto.WmChannelPageDTO;
import com.wang.wemedia.api.model.pojo.WmChannel;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: wangning
 * @date: 2024/1/12 10:22
 */
public interface WmChannelService extends IService<WmChannel> {

    /**
     * 新增频道
     */
    ResponseResult add(WmChannel wmChannel);

    /**
     * 删除频道
     *
     * @param id
     * @return
     */
    ResponseResult delete(Integer id);

    /**
     * 修改
     *
     * @param wmChannel
     * @return
     */
    ResponseResult alter(WmChannel wmChannel);

    /**
     * 查询所有频道
     *
     * @return
     */
    ResponseResult findAll();

    /**
     * 分页查询
     *
     * @param wmChannelPageDTO
     * @return
     */
    ResponseResult listWmChannel(WmChannelPageDTO wmChannelPageDTO);

}
